package com.webmuseum.client;

import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Widget;

public class UIContainer extends FlexTable 
{
	protected enum mIndex {CTRL_INDEX, WIDGET_INDEX};
	
	public UIContainer(Widget aWidget)
	{
		int i = 0;
		//setCellPadding(3);
		//setBorderWidth(3);
		setWidget(i, UIMultiContainer.mIndex.WIDGET_INDEX.ordinal(), aWidget);
	}
	
	public UIContainer clone()
	{
		UIContainer p = new UIContainer( CloneManager.getInstance().cloneWidget(getWidget(0, UIMultiContainer.mIndex.WIDGET_INDEX.ordinal())));
		return p;
	}
	
}
